package com.lmk.tl;
    /**
         *动物类 父类
         * @author 青笙
         * @email  1460961774@qq.com
         */

public class Animal {
     private int age;
    private int weight;
    private String color;

        public Animal() {
        }

        public void eat(String food){
            System.out.println("吃饭饭"+food);
        }
        public void sleep(){
            System.out.println("睡觉觉"
            );
        }
        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public int getWeight() {
            return weight;
        }

        public void setWeight(int weight) {
            this.weight = weight;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }
    }
